home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
keyb
/
alias450.zip
/
ALIAS.HLP
< prev
next >
Wrap
Text File
|
1989-11-17
|
13KB
|
354 lines
ALIAS.HLP - Help File for ALIAS version 4.26 (Text revision 0.4)
--------------------------------------------------------------------
This document provides information on ALIAS, the shareware MS-DOS
command abbreviation system by Robert Schifreen.
It should not normally be necessary to read this file. Just install ALIAS
by typing ALIAS at the DOS prompt, then type ALIAS ? for help (*). If you
get stuck, or need more information, you should find it in this help file.
If problems are encountered during installation, and the ALIAS ? command
does not produce a help screen, try altering the order in which you load
your resident programs (look at your AUTOEXEC.BAT file).
This ALIAS.HLP file provides fuller explanations of the items mentioned
on the help screen.
(*) There is a special "short" version of ALIAS available. This is identical
to the real version, but saves some memory by omitting the online help
text. If you have this version (find out by typing ALIAS ? or ALIAS I),
the way to get help is by reading this ALIAS.HLP file instead.
What is ALIAS?
--------------
ALIAS is a utility program for IBM PCs and compatibles. You are free to
copy it, and to distribute copies to friends. If, after using ALIAS for
a month, you decide that it is useful, you must register your copy.
You do this by sending payment direct to the author. Full details are
displayed each time you run ALIAS.COM. If you do distribute ALIAS, make
sure you distribute both files (ALIAS.COM and ALIAS.HLP).
WHAT DOES ALIAS DO?
-------------------
1. ALIAS is a command abbreviation system for MS-DOS, plus lots more.
You can abbreviate frequently-used command strings to just a couple of
characters. MS-DOS batch files let you do this already, but ALIAS is
faster and more flexible, and doesn't require that you keep dozens of
tiny batch files on your hard disk.
2. ALIAS stores the commands that you type at the DOS prompt, so you
can play them back and save yourself typing.
3. ALIAS has command completion facility. Once you've typed a long
command once, ALIAS has stored it. To type that command again, just
type the first few characters (enough to idenify the comand) and press
F4, and ALIAS will fill in the rest of the command.
4. ALIAS gives your machine an 'it' and an 'also' key.
5. ALIAS provides full command editing, on commands that you are
typing, and on those that you recall.
The remainder of this document describes ALIAS's facilities in full.
Make sure that the version number of this document (shown on the top
line) is the same as the version number of your copy of ALIAS.COM.
ALIAS.COM shows its version number when you run it, or when you type
ALIAS I, or when you type ALIAS ?.
Remember, for a brief summary of this help file, assuming that ALIAS is
installed, just type ALIAS ? from the DOS prompt.
INSTALLING ALIAS
----------------
If you want to use ALIAS, you have to install it every time you turn on
the computer. Do this by typing ALIAS at the DOS prompt. ALIAS will
display a messsage, and will then be ready for use.
You can put the ALIAS command in your AUTOEXEC.BAT file, if you want,
which will load ALIAS every time you turn on the machine.
If you wish to avoid the long message that is displayed each time you start
ALIAS, type:
ALIAS >NUL
instead of ALIAS on its own.
ALIAS lets you save abbreviations in a file. If you use the default
file name (ALIAS.DAT), and this file exists in the current directory
when you load ALIAS, the definition file will be loaded. Also, the
directory from which the default file was loaded will be remembered (you
can see it with ALIAS I), so whenever you update the file the changes
will go to the correct place.
Note that abreviations set up by ALIAS work from the keyboard only, and
not from within batch files.
SETTING UP AN ALIAS
-------------------
To set up an alias, make sure ALIAS is installed and type:
ALIAS A SHORTFORM LONGFORM
at the DOS prompt. All ALIAS commands start with the word ALIAS. The
'A' means 'Add an alias', and the shortform and longform are whatever
you want them to be.
For example,
ALIAS A DA DIR A:
has DA as a shortform, and DIR A: as a longform. If you set up this
alias, then DA will become an abbreviation for DIR A:.
Shortforms are limited to 6 characters. Longforms can be 70 characters.
You can use an ampersand ('&') in your longforms, to separate multiple
commands. So,
ALIAS A DA CLS & DIR A:
will set up an alias called DA, that clears the screen and then performs
a directory listing of drive A:.
You can also use the percent ('%') character in longforms, just as you
can in DOS batch files. For example,
ALIAS A CA COPY %1 A:
sets up an abbreviation called CA, that copies a file to drive A:. The
name of the file to copy should be typed after the CA. To copy TEST.EXE
to drive A:, you could just type CA TEST.EXE.
The %1 will be expanded to reflect the first word (delimited by a space)
typed after CA. You can use %2 to %9 to represent other words, and you
can also use %* to represent all words.
DELETING AN ALIAS
-----------------
Aliases that are defined with the ALIAS A command are kept in memory,
ready to be used. ALIAS lets you store 30 aliases in memory at one
time. To delete an abbreviation from memory, type
ALIAS D SHORTFORM
and the specified shortform will be deleted from memory. This will make
space in the alias table for more abbreviations.
LISTING ALIASES
---------------
The ALIAS L command lists, on screen, the current aliases that have been
defined and that are held in memory for use. Typing ALIAS L lists all
aliases, or you can type ALIAS L SHORTFORM to list a specific one. Note
that it is not possible to re-direct this listing to the printer - you
will have to press the PrtSc key to print a list of aliases.
SAVING ALIAS DEFINITIONS TO A FILE
----------------------------------
When the computer is turned off, alias definitions held in memory are
lost. To prevent having to re-type all those ALIAS A commands each
time, use the ALIAS W command to save the aliases to a file.
Typing ALIAS W writes all aliases to a file called ALIAS.DAT, which is
placed in the current directory. If the file already exists, it will be
overwritten without warning. You can follow ALIAS W with a filename, if
you wish.
The ALIAS.DAT file will be loaded each time you install ALIAS, if the
ALIAS.DAT file exists in the current directory when ALIAS is installed.
It is recommended that you use the ALIAS W command each time you add or
delete an alias, so that the current aliases will always be available.
Apart from the alias definitions, the following information is also held
in a saved alias file: whether the recalled-command editor is in insert
or overtype mode; whether alias expansion is turned on or off; whether
alias expansion is from DOS prompt or global; the current alias colour
setting; whether the system is in SHOW or HIDE mode.
RESTORING ALIAS DEFINITIONS FROM A FILE
---------------------------------------
The opposite of ALIAS W is ALIAS R. ALIAS R reads alias definitions
from a file, and the definitions read will replace the entire memory-
based abbreviations.
FLUSING ALIASES FROM MEMORY
---------------------------
The ALIAS F command flushes the entire memory, deleting all aliases.
Any aliases saved in a file will not be affected.
MAKING ALIASES VALID FROM THE DOS PROMPT ONLY
---------------------------------------------
Normally, aliases are valid from the DOS prompt only. You can force
this mode with the ALIAS P command.
MAKING ALIASES VALID GLOBALLY
-----------------------------
ALIAS G selects global mode, in which aliases will work from within
certain applications.
TURNING OFF ALIAS EXPANSION
---------------------------
The ALIAS N (N for None) command turns off alias expansion. Typing a
shortform at the DOS prompt will have no effect. Alias expansion can be
turned back on with ALIAS